package com.example.sys.authority.model;

import com.example.core.model.BaseModel;
import com.example.sys.org.model.SysOrgElement;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;

@Getter
@Setter
@Entity
@Table(name = "sys_authority")
public class SysAuthority extends BaseModel<SysAuthority> implements SysAuthorityConstant {

    @Column(name = "fd_key")
    private int fdKey;

    @Column(name = "fd_model_name")
    private String fdModelName;

    @Column(name = "fd_model_id")
    private String fdModelId;

    @OneToOne(cascade = CascadeType.ALL)
    @JoinColumn(name = "fd_element_id", referencedColumnName = "fd_id")
    private SysOrgElement fdElement;

    @Override
    public Class<?> getFormClass() {
        return null;
    }
}
